import request from '@/utils/request'

// 查询商品分类/类别列表
export function listProcategory(query) {
  return request({
    url: '/procategory/procategory/list',
    method: 'get',
    params: query
  })
}

// 查询商品分类/类别详细
export function getProcategory(id) {
  return request({
    url: '/procategory/procategory/' + id,
    method: 'get'
  })
}

// 新增商品分类/类别
export function addProcategory(data) {
  return request({
    url: '/procategory/procategory',
    method: 'post',
    data: data
  })
}

// 修改商品分类/类别
export function updateProcategory(data) {
  return request({
    url: '/procategory/procategory',
    method: 'put',
    data: data
  })
}

// 删除商品分类/类别
export function delProcategory(id) {
  return request({
    url: '/procategory/procategory/' + id,
    method: 'delete'
  })
}
